from django.conf.urls.defaults import *

blogindex = url(
    regex  = '^$',
    view   = 'blog.views.index',
    name   = 'vwblogindex'
)

blogpost = url(
    regex  = '^(?P<year>\d{4})/(?P<slug>[-\w]+)/$',
    view   = 'blog.views.blogpost',
    name   = 'vwblogpost'
)

blogpage = url(
    regex  = '^(?P<slug>[-\w]+)/$',
    view   = 'blog.views.page',
    name   = 'vwblogpage'
)



urlpatterns = patterns('', blogindex, blogpost, blogpage)
